package com.pateo.springcloudorder.web.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel("订单对象")
@Data
public class OrderRequest {

    @NotNull
    @ApiModelProperty("商品id")
    private Long goodsId;

    @DecimalMin(value = "0.01")
    @DecimalMax(value = "99999.99")
    @ApiModelProperty("订单金额")
    private BigDecimal orderAmount;

}
